package com.animal.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;
import java.util.Date;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 
 * </p>
 *
 * @author animal
 * @since 2022-01-29
 */
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="AnComment对象", description="")
public class AnComment implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "评论id")
    @TableId(value = "co_id", type = IdType.AUTO)
    private Integer coId;

    @ApiModelProperty(value = "评论类型 1 帖子评论 2 商品评论  3领养评论")
    private Integer type;

    @ApiModelProperty(value = "帖子id")
    private Integer inId;

    @ApiModelProperty(value = "领养动物id")
    private Integer anId;

    @ApiModelProperty(value = "商品id")
    private Integer prId;

    @ApiModelProperty(value = "评论内容")
    private String coContent;

    @ApiModelProperty(value = "用户id")
    private Integer userId;

    @ApiModelProperty(value = "评论星级 1-5星")
    private Integer coLevel;

    @TableField(exist = false)
    private  AnInvitation anInvitation;

    @TableField(exist = false)
    private  AnProduct anProduct;

    @TableField(exist = false)
    private  AnUser anUser;

    @ApiModelProperty(value = "创建时间")
    private Date coCreatTime;

    @ApiModelProperty(value = "修改时间")
    private Date coUpdTime;

}
